/*
 * @Author: fisher
 * @Date: 2023-01-29 22:37:39
 * @LastEditTime: 2023-01-31 21:53:08
 * @LastEditors: your name
 * @Description:
 * @FilePath: /vite-vue-ts-pc/src/common/index.ts
 * 可以输入预定的版权声明、个性签名、空行等
 */
import { App } from 'vue'
import Button from './button'
import Space from './space'
import Loading from './loading'

const globalComponents = [Button, Space, Loading]

const install = (app: App): void => {
  globalComponents.forEach((component) => {
    console.log(component)
    app.component(component.name, component)
  })
}
export { Button, Space }
export default install
